﻿namespace Bule.Malbilden.Domain
{
    public class EatenAmount
    {
        public EatenAmount(double portionSize)
        {
            PortionSize = portionSize;
        }

        public double PortionSize { get; set; }
        public double Weight { get; set; }

        public double Portions
        {
            get { return Weight / PortionSize; }
            set { Weight = value * PortionSize; }
        }
    }
}
